#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>
#include<ctype.h>

int main()
{
    char ch;
    int count = 0;
    while ((ch = getchar()) != '\n')
    {
        if (isdigit(ch))
            count++;
    }
    printf("%d", count);
    return 0;
}